package queueddas;

import java.awt.*;
import java.util.Random;
import javax.swing.*;

public class Food{
    int x;
    int y;
    int location;
    int imageReturn;
    Image image;
    Image image2;
    Image image3;

    public Food(){
        ImageIcon i1 = new ImageIcon("plate_dirty");
        ImageIcon i2 = new ImageIcon("plate_poporing");
        ImageIcon i3 = new ImageIcon("plate_poring");

        image = i1.getImage();
        image2 = i2.getImage();
        image3 = i3.getImage();

        imageReturn = 1;
        x = 400; y = -50;
    }

    public int getX(){
        return x;
    }

    public int getY(){
        return y;
    }

    public Image getImage(){
        Image returnImage = image;
        
        if(imageReturn == 1)
            returnImage = image;
        else if(imageReturn == 2)
            returnImage = image2;
        else if(imageReturn == 3)
            returnImage = image3;
    
        return returnImage;
    }

    public void setImageReturn(int imageReturn){
        this.imageReturn = imageReturn;
    }

    public void setLocation(int loc){
        //-1 hidden
        //11 at counter
        //12 at bin
        //1 at table 1...
        if(loc == -1){
         x = 400; y = -50;
        }
        else if(loc == 11){

        }
    }

}